package com.e3.basdoc.goodscls.client;

import java.util.List;

import com.e3.basdoc.goodscls.model.GoodsClsModel;
import com.e3.basdoc.goodscls.model.GoodsClsQC;
import com.e3.web.core.client.RPCServiceHelper;
import com.e3.web.core.client.WebException;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;

public interface GoodsClsRPCService extends RemoteService {
	public static class Util {

		private static GoodsClsRPCServiceAsync instance;

		public static GoodsClsRPCServiceAsync getInstance() {
			instance = (GoodsClsRPCServiceAsync) RPCServiceHelper.getService(GoodsClsRPCService.class.getName());
			if (instance == null) {
				instance = GWT.create(GoodsClsRPCService.class);
				RPCServiceHelper.registerServiceEntryPoint(instance);
			}
			return instance;
		}

	}

	public GoodsClsModel newGoodsCls(GoodsClsModel model) throws WebException;
	
	public GoodsClsModel modifyGoodsCls(GoodsClsModel model) throws WebException;
	
	public List<GoodsClsModel> getGoodsClsByCondition(GoodsClsQC qc) throws WebException;
	
	public void deleteGoodsClses(List<GoodsClsModel> models) throws WebException;
	
	public List<GoodsClsModel> getGoodsClsChildren(GoodsClsModel model) throws WebException;

}
